.farris-tags {
    .farris-tags-item-container {
        margin: 0;
        padding: 0;
        .farris-tag-item {
            // display: inline-block;
            display: inline-flex !important;
            padding: 0 8px;
            margin: 3px 6px 3px 0;
            line-height: 24px;
            font-size: 13px;
            color: #2d314e;
            background: #f6faff;
            border: 1px solid #e6e6e6 !important;
            white-space: nowrap;
            border-radius: 3px;
            cursor: default;
            opacity: 1;
            transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
            max-width: 9rem;
            a,
            a:hover {
                color: rgba(0, 0, 0, 0.85);
            }
            & > a:first-child:last-child {
                display: inline-flex;
                margin: 0 -8px;
                padding: 0 8px;
            }
            .tag-box {
                text-overflow: ellipsis;
                overflow: hidden;
                word-break: break-all;
                white-space: nowrap;
                display: inline-flex;
                max-width: 7rem;
                vertical-align: middle;
            }
            .tag-delete {
                display: inline-block;
                margin-left: 6px;
                color: rgba(0, 0, 0, 0.2);
                cursor: pointer;
                transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
                &:hover {
                    color: rgba(0, 0, 0, 0.85);
                }
            }
            & > .f-icon {
                font-size: 12px;
            }
            & > .f-icon + span,
            & > span + .f-icon {
                margin-left: 7px;
            }
            &.farris-tag-item-success {
                color: #52c41a;
                background: #f6ffed;
                border-color: #b7eb8f;
            }
            &.farris-tag-item-info {
                color: #1890ff;
                background: #e6f7ff;
                border-color: #91d5ff;
            }
            &.farris-tag-item-error {
                color: #f5222d;
                background: #fff1f0;
                border-color: #ffa39e;
            }
            &.farris-tag-item-warning {
                color: #fa8c16;
                background: #fff7e6;
                border-color: #ffd591;
            }
            &.farris-tag-item-default {
                color: #2d314e;
                background: #f6faff;
                border: 1px solid #e6e6e6;
            }
            // &.farris-tag-item-has-color{
            //     color: #fff;
            //     border-color: transparent;
            //     .tag-delete,.tag-delete:hover,a,a:hover{
            //         color: #fff;
            //     }
            // }
            &.farris-tag-item-checkable:not(.farris-tag-item-checked) {
                // background-color: transparent;
                // border-color: transparent;
                cursor: pointer;
                &:active {
                    color: #59a1ff;
                }
                &:hover {
                    color: #59a1ff;
                }
            }
            &.farris-tag-item-checkdisabled {
                background-color: transparent;
                border-color: transparent;
                cursor: not-allowed;
                color: rgba(0, 0, 0, 0.45);
            }
            &.farris-tag-item-checked {
                background-color: #fff;
                border-color: #2a87ff;
                color: #2a87ff;
            }
            &:last-child {
                margin-right: 0;
            }

            &.farris-tag-item-actived,
            &:active {
                background-color: #2a87ff;
                color: #ffffff;
                .tag-delete {
                    color: #ffffff;
                }
            }
        }
        .farris-tag-add-button {
            cursor: pointer;
            background: #f9f9f9;
            border: 1px dashed #babdc9;
            .farris-tag-add-text {
                color: rgba(0, 0, 0, 0.45);
                line-height: 24px;
            }
            .f-icon {
                color: rgba(0, 0, 0, 0.2);
                line-height: 24px;
            }
            &:hover {
                background-color: #f9f9f9;
                border-color: #59a1ff;
                .farris-tag-add-text,
                .f-icon {
                    color: #59a1ff;
                }
            }
            &.farris-tag-add-button-disabled {
                background-color: #f7f7f7;
                border-color: #dcdcdc;
                border-style: solid;
                cursor: not-allowed;
                .farris-tag-add-text {
                    color: rgba(0, 0, 0, 0.25);
                }
                &:hover {
                    background-color: #f7f7f7;
                    border-color: #dcdcdc;
                    .farris-tag-add-text,
                    .f-icon {
                        color: rgba(0, 0, 0, 0.25);
                    }
                }
            }
        }
        .farris-tag-input-box {
            display: inline-flex !important;
            padding: 0;
            margin: 2px 3px 2px -3px;
            line-height: 22px;
            font-size: 13px;
            .form-control {
                padding: 2px 0;
                min-width: 2px;
                border: none;
                background: none;
                line-height: inherit;
                text-wrap: nowrap;
                width: 100% !important;
                height: 22px !important;
                &:focus {
                    box-shadow: none;
                }
                &:focus-visible {
                    outline: none;
                }
            }
        }
        &.farris-tag-item-capsule {
            .farris-tag-item {
                border-radius: 24px;
                &.farris-tag-item-checkable:not(.farris-tag-item-checked) {
                    background: #ffffff;
                    border: 1px solid #e6e6e6;
                    cursor: pointer;
                    &:active {
                        color: #59a1ff;
                    }
                    &:hover {
                        color: #59a1ff;
                    }
                }
                &.farris-tag-item-checked {
                    background-color: rgba(42, 135, 255, 0.06);
                    border-color: rgba(42, 135, 255, 0.16);
                    color: #2a87ff;
                }
            }
        }
    }
    &.farris-tags-checkable {
        .farris-tag-item {
            line-height: 22px;
        }
    }
    &.farris-tags-nowrap {
        overflow: hidden;
        .farris-tags-item-container {
            display: flex;
            flex-wrap: nowrap;
            overflow: hidden;
        }
    }
}

.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-warning {
    color: #f5a144;
    border-color: #fad0a1;
    background: #fef5ec;
}
